/**
 * Created by leo on 2/2.
 */
angular.module('panels')
    .directive('panelPortalPicturesSlider', function (loadConf, tabService) {
        return {
            scope: {},
            link: function (scope) {
                loadConf('panel-portal-pictures-slider.yml')
                    .then(function (data) {
                        scope.images = data;
                        scope.slickOption = {
                            infinite: true,
                            slidesToShow: 3,
                            slidesToScroll: 2,
                            autoplay: true,
                            arrows: false,
                            adaptiveHeight: true,
                            centerMode: true
                        };
                    });
                scope.tabService = tabService;
            },
            templateUrl: 'app/panel/portal/pictures-slider.html'
        };
    });